/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.emergency.service.api;

import com.koron.common.bean.StaffBean;
import com.koron.common.domain.DataBean;
import com.koron.emergency.bean.BaseQuery;
import com.koron.emergency.bean.DrillPlanAttrBean;
import com.koron.emergency.domain.DrillPlan;
import org.koron.ebs.mybatis.SessionFactory;
import org.springframework.web.multipart.MultipartFile;
import org.swan.bean.MessageBean;

import java.util.Date;
import java.util.List;

public interface DrillPlanService {

    MessageBean<Integer> save(StaffBean user, DrillPlan plan, String approver, MultipartFile[] files);

    MessageBean<Integer> delete(StaffBean user,String id,String approver);

    MessageBean<DrillPlan> queryOne(String id);

    MessageBean<DataBean<DrillPlan>> queryByCondition(String corpCode,String name, String sponsorDeptCode, Date startTime,Date endTime,
                                                      Integer start,Integer rows);

    MessageBean<List<DrillPlan>> queryAll(String corpCode,String name);

    /**
     * 安全台账
     * @param bean
     * @return
     */
    MessageBean<?> safetyAccount(BaseQuery bean);

    MessageBean<List<DrillPlanAttrBean>> fileList(SessionFactory factory,String id);
}
